package cn.tedu.jewelry.controller;

import cn.tedu.jewelry.entity.HotkeyWord;
import cn.tedu.jewelry.entity.Product;
import cn.tedu.jewelry.mapper.HotkeyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/index")
public class HotkeyController {
    @Autowired(required = false)
    HotkeyMapper mapper;

    //热搜词
    @RequestMapping("/hotKeyWord")
    public List<HotkeyWord> hotKeyWord(){
        return mapper.hotKeyWord();
    }
}
